package com.fit.model.combo.coach;

import org.hibernate.Session;

import com.fit.entities.coach.Coach;



public class CoachEncoder {
	private Session session;

	public CoachEncoder(Session session) {
		this.session = session;
	}

	public String toClient(Object arg0) {
		return ((Coach)arg0).getName().toString();
	}

	public Object toValue(String arg0) {
		return session.load(Coach.class, new Long(arg0));
	}
}
